﻿<!DOCTYPE HTML> 
<html lang="zh-cn"> 
	<head> 
		<title>今日菜单</title>
		<meta http-equiv="Content-Type" content="text/html; charset=utf8" />
		<meta name="viewport" content="width=device-width, initial-scale=1"> 

		<link rel="stylesheet" href="/static/css/jquery.mobile-1.0rc2.min.css" />
		<link rel="stylesheet" href="/static/css/kkcai.css" />
		<script type="text/javascript" src="/static/js/jquery-1.6.4.min.js"></script>
		<script type="text/javascript" src="/static/js/jquery.mobile-1.0rc2.min.js"></script>
		<script type="text/javascript" src="/static/js/deviceinfo.js"></script>
		<script type="text/javascript" src="/static/js/menu.js"></script>
	</head> 
	<body> 
		<!-- Start of first page -->
		<div data-role="page" id="page">
			<div data-role="header" data-theme="a" data-position="fixed">
				<h1>{{daynow}}</h1>
			</div><!-- /header -->
			<div data-role="content"> 
			
			<ul data-role="listview" data-dividertheme="b">
				{% for fl in fllist %}<!-- 接收今天的菜单分类 -->
					<li data-role="list-divider">{{fl.1}}</li>
					{% for cp in cplist %}<!-- 接收今天的菜单明细 -->
						{% if fl.0 == cp.0 %}<!-- 将今天的菜单明细分到自个类中 -->
							<li id="{{cp.1}}">
								<a href="/rate/{{cp.1}}">
									{{cp.2}}

									{% for pj in pjlist %}
										{% if cp.1 == pj.0 %}
											&nbsp;<font size="1" color="#6699CC">{{pj.1}}评</font>
										{% endif %}
									{% endfor %}
								</a>

								{% for pf in pflist %}
									{% if cp.1 == pf.0 %}
										{% for dj in djlist %}
											{% if pf.1 = dj.0 %}
												<span class="ui-li-count" id="span_{{dj.0}}">
													{{dj.1}} {{pf.2}}
												</span>
											{% endif %}
										{% endfor %}
									{% endif %}
								{% endfor %}
							</li>
						{% endif %}
					{% endfor %}
				{% endfor %}
			</ul>

			</div><!-- /content -->
			<div data-role="footer" data-position="fixed" data-theme="a">
				<h6>聚隆食堂</h6>
			</div><!-- /footer -->
		</div><!-- /page -->
	</body>
</html>